#ifndef ROOMEDITDIALOG_H
#define ROOMEDITDIALOG_H

#include <QDialog>
#include <QTextCodec>

#include "../../Headers/Classes/myutils.h"
#include "../../Headers/Classes/room.h"
#include "../../Headers/Classes/typeofroom.h"
#include "../../Headers/DataAccessors/roomdataaccessor.h"
#include "../../Headers/DataAccessors/typeofroomdataaccessor.h"
#include "../../Headers/UI/typeofroomdialog.h"

namespace Ui {
    class RoomEditDialog;
}

class RoomEditDialog : public QDialog
{
    Q_OBJECT

    MyUtils::FormStatus formStatus;
    Room *room;

public:
    explicit RoomEditDialog(MyUtils::FormStatus formStatus = MyUtils::Adding, Room *room = NULL, QWidget *parent = 0);
    ~RoomEditDialog();

private slots:
    void on_createButton_clicked();

    void on_cancelButton_clicked();

    void on_typePushButton_clicked();

private:
    Ui::RoomEditDialog *ui;
};

#endif // ROOMEDITDIALOG_H
